import { ref } from "vue";
import { defineStore } from "pinia";

export const useAdminStore = defineStore(
    "admin",
    () => {
        const admin = ref("admin");
        const updateAdmin = (val) => { admin.value = val; }
        const removeAdmin = (val) => { admin.value = null; }
        return { admin, updateAdmin, removeAdmin }
    }, {
        persist: true,
    }

);